package org.jeecg.modules.pbmp.returnStage.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.pbmp.returnStage.entity.ReturnStage;
import org.jeecg.modules.pbmp.returnStage.mapper.ReturnStageMapper;
import org.jeecg.modules.pbmp.returnStage.service.IReturnStageService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 项目回款信息
 * @Author: jeecg-boot
 * @Date:   2021-01-27
 * @Version: V1.0
 */
@Service
public class ReturnStageServiceImpl extends ServiceImpl<ReturnStageMapper, ReturnStage> implements IReturnStageService {

    @Override
    public Page<ReturnStage> pageStageList(Page<ReturnStage> page, ReturnStage returnStage) {
        List<ReturnStage> l = baseMapper.pageStageList(page,returnStage);
        return page.setRecords(l);
    }

    @Override
    public ReturnStage queryTotleByProjectId(String projectId) {
        return baseMapper.queryTotleByProjectId(projectId);
    }
}
